#include "Entry.h"

namespace logging {

Entry::Entry(const char* ns, Level level, const char* message)
	: _level(level) {

	int len = strlen(ns);
	_namespace = new char[len+1];
	strncpy(_namespace, ns, len+1);

	len = strlen(message);
	_message = new char[len+1];
	strncpy(_message, message, len+1);

	time(&_timestamp);
}

}
